using System;
using System.Collections;
using System.Collections.Generic;
using Me.Prettyprint.Cassandra.Connection;
using Me.Prettyprint.Cassandra.Service;
using Me.Prettyprint.Hector.Api;
using Me.Prettyprint.Hector.Api.Beans;
using Me.Prettyprint.Hector.Api.Query;

namespace Me.Prettyprint.Cassandra.Model
{
    /// <summary>
    /// AbstractQuery is an abstract class that other query classes should extend.
    /// It extends AbstractBasicQuery and adds the value serializer property.
    /// </summary>
    /// <typeparam name="K"></typeparam>
    /// <typeparam name="N"></typeparam>
    /// <typeparam name="V"></typeparam>
    /// <typeparam name="T"></typeparam>
	public abstract class AbstractQuery<K, N, V, T> : AbstractBasicQuery<K, N, T>, Query<T>
	{
        public AbstractQuery(Keyspace k, Serializer<K> keySerializer, Serializer<N> nameSerializer, Serializer<V> valueSerializer) : base(k,keySerializer,nameSerializer)
        {
            ValueSerializer = valueSerializer;
        }
        public Serializer<V> ValueSerializer
        {
            get;
            set;
        }
	}
}